<?php
class News extends Controller {
	function News(){
		parent::Controller();
		$this->load->helper(array('url','function','common'));
 		$this->load->scaffolding('mc_news');
 		//调用前台公用Model
 		$this->load->model('Mhome');
	}
	
	function index(){
		load_view("news",$this->data());		
	}

	function data(){
		/*--------------------------------左侧部分【left】---------------------------------*/
		$data['lastes_news']=$this->Mhome->lastes_news($num=8);
		$data['banks']=$this->Mhome->banks();
		/*--------------------------------网站首页【index】-------------------------------*/
		//网吧加盟index.php
		$data['netbar']=$this->Mhome->netbar();
		$data['news']=$this->Mhome->news($this->uri->segment(2,0),1);
		$data['flag']=NULL;
		return $data;
	}

}//end C_home
/* End of file home.php */
/* Location: ./system/application/controllers/home.php */